export const tableConfig = {
    headerOperation: [
        {
            type: 'create',
            visible: true,
            permission: ['POST:/api/user/manage/roles'],
            className: '',
            name: '新增角色',
            button: 'button',
            radioGroup: []
        }
    ],
    search: [
        {
            key: 'name',
            type: 'text',
            name: '角色名称',
            modelValue: ''
        }
        // {
        //     key: 'status',
        //     type: 'select',
        //     name: '状态',
        //     modelValue: '',
        //     options: []
        // }
    ],
    permission: ['GET:/api/user/manage/roles/page'],
    table: {
        operationWidth: '190px',
        operation: [
            {
                type: 'delete',
                visible: true,
                permission: ['*'],
                className: 'delete',
                name: '删除'
            },
            {
                type: 'edit',
                visible: true,
                permission: ['PUT:/api/user/manage/roles'],
                className: 'edit',
                name: '编辑'
            },
            {
                type: 'authorization',
                visible: true,
                permission: ['PUT:/api/user/manage/roles/assign-dimensions'],
                className: 'edit',
                name: '数据授权'
            }
        ],
        propName: {
            name: '角色名称',
            description: '角色描述',
            createTime: '创建时间',
            updateTime: '操作时间'
        },
        expandPropName: {},
        showSummary: false,
        selection: false,
        expand: false,
        index: false,
        isDialog: false,
        summaryArray: [],
        summaryType: '',
        sortable: [],
        switch: {
            disabled: false,
            permission: [],
            tooltip: {
                visible: false,
                content: ''
            }
        }
    }
}
